home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / ufw / examples / skel-ui.example < prev   
Encoding:
Text File  |  2009-04-03  |  947 b   |  32 lines

  1. #! /usr/bin/python
  2. #
  3. # skel-ui: skeleton frontend for ufw
  4. #
  5. # Copyright (C) 2008 Canonical Ltd.
  6. #
  7. #    This program is free software: you can redistribute it and/or modify
  8. #    it under the terms of the GNU General Public License version 3,
  9. #    as published by the Free Software Foundation.
  10. #
  11. #    This program is distributed in the hope that it will be useful,
  12. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #    GNU General Public License for more details.
  15. #
  16. #    You should have received a copy of the GNU General Public License
  17. #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18. #
  19.  
  20. import ufw.frontend
  21. from ufw.common import UFWError
  22. from ufw.util import error, warn
  23.  
  24. ufw.common.programName = "skel-ui"
  25.  
  26. import gettext
  27. gettext.install(ufw.common.programName)
  28.  
  29. if __name__ == "__main__":
  30.     print ufw.frontend.get_command_help()
  31.  
  32.